package com.xpxrule.service;

import com.xpxrule.dataobject.biz.model.ReturnResponse;
import com.xpxrule.dataobject.dao.BusinessModel;
import com.xpxrule.dataobject.req.BusinessModelQueryReq;
import com.xpxrule.dataobject.vo.BusinessModelVo;
import com.xpxrule.dataobject.vo.FieldInfoVo;
import com.xpxrule.dataobject.vo.OptionVo;

import java.util.List;

/**
 * @version 1.0
 * @Author xiangpengxiang
 * @Date 2024/11/20 19:27
 * @注释
 */
public interface BusinessModelService {
    ReturnResponse<Integer> insert(BusinessModelVo vo);

    ReturnResponse<Integer> delete(Long id);

    ReturnResponse<Integer> update(BusinessModelVo vo);

    ReturnResponse<List<BusinessModelVo>> selectList(BusinessModelQueryReq req);

    BusinessModel getBusinessModelByBusinessKey(String modelKey);

    ReturnResponse<List<OptionVo>> getAllBusinessModelOptions();

    ReturnResponse<List<FieldInfoVo>> getFieldListByBusinessModelKey(String modelKey);
}
